﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Citi.RoutineBase;

namespace Citi.ProcureToPay.ConsoleUi
{
    public class CurrentAction : ICurrentAction
    {
        public string Description
        {
            set { Console.WriteLine(value); }
        }

        public void StartLog(string message)
        {

        }

        public void StartLogOnFile(string filePath)
        {

        }

        public void StopLog()
        {

        }

        public void StopLogOnFile()
        {

        }
    }

    class Program
    {
        static void Main(string[] args)
        {
            var parameters = new Dictionary<string, object> { 
                { "RobotUsername", @"lac\lac_bra_ftools" }
                , { "RobotPassword", "Ferrari3k10" }
                , { "ReportName", "CITI PO Global Details Report"}
                , { "UserLogin", "ND61955"}
                , { "PathToSave", @"c:\temp\teste1.xls"}
                , { "Parameters", "{[PO Creation Date From]['01-NOV-2014']}{[PO Closure Status]['OPEN']}"}
                , { "ExcelPath", @"G:\Apps\P2P\Entries"}
            };

            ICurrentAction action = new CurrentAction();
            new SchedulerUi.EntriesImport().Start(DateTime.Now, ref action, parameters);
        }
    }
}
